<include file="public@header" />
</head>
<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--页面主要内容-->
        <main class="lyear-layout-content">
          
            <div class="container-fluid">
            
                <div class="row">
                   <div class="col-md-12">
                        <div class="card">
							<ul class="nav nav-tabs">
								<li><a href="{:url('Menu/index')}">后台菜单</a></li>
								<li><a href="{:url('Menu/add')}">添加菜单</a></li>
								<li class="active"><a href="{:url('Menu/lists')}">所有菜单</a></li>
							</ul>
							<div class="card-body">
								<form class="form-horizontal js-ajax-form" action="{:url('menu/listorders')}" method="post">
									<div class="table-actions">
										<a class="btn btn-primary btn-sm js-ajax-dialog-btn" href="{:url('menu/exportMenuLang')}" data-msg="您确定生成菜单多语言包吗？请确保应用目录下lang目录可写！">生成菜单多语言包</a>
										<a class="btn btn-warning btn-sm" href="{:url('menu/getactions')}">导入新菜单</a>
									</div>
									<br/>
									<div class="alert alert-warning" style="margin: 0 0 5px 0;">
										 请在开发人员指导下进行以上操作！
									</div>
										<div class="table-responsive">
	                                        <table class="table table-hover" >
												<thead>
													<tr>
														<th width="50">ID</th>
														<th>菜单英文名称</th>
														<th width="50">状态</th>
														<th width="150">管理操作</th>
													</tr>
												</thead>
												<foreach name="menus" item="vo">
												<tr>
													<td>{$vo.id}</td>
													<td>{$vo.name}:{$vo.app}/{$vo.controller}/{$vo.action}</td>
													<td>
														<empty name="vo.status">
								                            <span class="label label-warning">
								                                隐藏
								                            </span>
															<else/>
															<span class="label label-success">
								                                显示
								                            </span>
														</empty>
													</td>
													<td>
														<a class="btn btn-xs btn-primary" href="{:url('menu/edit',array('id'=>$vo['id']))}">编辑</a>
														<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('menu/delete',array('id'=>$vo['id']))}">删除</a>
													</td>
												</tr>
												</foreach>
												<tfoot>
													<tr>
														<th width="50">ID</th>
														<th>菜单英文名称</th>
														<th width="50">状态</th>
														<th width="100">管理操作</th>
													</tr>
												</tfoot>
											</table>
									</div>
								</form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</div>
<script src="__TMPL__/public/assets/js/admin.js"></script>
</body>
</html>